using B.S.XZYData.ErrorCode;
using MediatR;

namespace B.S.XZYData.Api.Wrter.Application.Command.Process
{
    /// <summary>
    /// 导入工序命令
    /// </summary>
    public class ImportProcessCommand : IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 导入的工序数据列表
        /// </summary>
        public List<ImportProcessDto> ProcessList { get; set; } = new List<ImportProcessDto>();

        /// <summary>
        /// 导入人
        /// </summary>
        public string Importer { get; set; } = string.Empty;
    }

    /// <summary>
    /// 导入工序DTO
    /// </summary>
    public class ImportProcessDto
    {
        /// <summary>
        /// 工序名称
        /// </summary>
        public string ProcessName { get; set; } = string.Empty;

        /// <summary>
        /// 报工权限
        /// </summary>
        public string ReportingPermissions { get; set; } = string.Empty;

        /// <summary>
        /// 报工数配比
        /// </summary>
        public int ReportingRatio { get; set; } = 1;

        /// <summary>
        /// 不良品项列表
        /// </summary>
        public string? DefectiveItemList { get; set; }

        /// <summary>
        /// 测试字段1
        /// </summary>
        public string? TestField1 { get; set; }

        /// <summary>
        /// 测试字段2
        /// </summary>
        public string? TestField2 { get; set; }
    }
} 